#ifndef __G_TEXTURE_H__
#define __G_TEXTURE_H__

#include "IResource.h"
#include "ImageTGA.h"

//class Texture : public IResource
//{
//private:
//	FWint m_iTargetType;
//public:
//	FWuint* TBOs;
//	FWuint TBOCount;
//public:
//	Texture();
//	Texture(FWuint count, char* path, char* names, char* config);
//	~Texture();
//
//	void SetTargetType(FWint type);
//	FWint Image2D();
//	FWint ImageCube();
//	//Default init texture 2D
//	virtual FWint Init();
//	void Destroy();
//};

class Texture
{
private:
	FWuint m_fileCount;
	char* m_filePath;
	char* m_fileName;
	char* m_fileConfig;

	FWint m_iTargetType;
public:
	FWuint* TBOs;
	FWuint TBOCount;
public:
	Texture();
	Texture(FWuint count, char* path, char* names);
	~Texture();

	void SetTargetType(FWint type);
	FWint Image2D();
	FWint ImageCube();
	//Default init texture 2D
	virtual FWint Init();
	void Destroy();
};

#endif